<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
    <script src="https://cdn.jsdelivr.net/npm/vue/dist/vue.js"></script>
</head>

<body>
    <div id="app">
        <input type="checkbox" id="agree" v-model="isagree"/> 同意协议
        <h3>同意否：{{isagree}}</h3>
        <button :disabled="!isagree">下一步</button>

        <br>
        <input type="checkbox" value="羽毛球" v-model="hobbies"/> 羽毛球
        <input type="checkbox" value="乒乓球" v-model="hobbies"/> 乒乓球
        <input type="checkbox" value="网球" v-model="hobbies"/> 网球
        <input type="checkbox" value="足球" v-model="hobbies"/> 足球

        你的选择：{{hobbies}}
    </div>

    <script>
        //创建Vue实例,得到 ViewModel
        var vm = new Vue({
            el: '#app',
            data: {
                isagree : false,
                hobbies:[]
            },
            methods: {}
        });
    </script>
</body>

</html>